package com.wt.admin.service.sys;

import com.wt.admin.domain.dto.sys.DataPermissionsTablesDTO;
import com.wt.admin.domain.entity.sys.SysDataPermissionsEntity;
import com.wt.admin.domain.vo.DataPermissionsFieldsVO;
import com.wt.admin.domain.vo.DataPermissionsTablesVO;
import com.wt.admin.util.PageUtil;

import java.util.List;
import java.util.Map;

public interface SysDataPermissionsService {

    PageUtil.PageVO<SysDataPermissionsEntity> find(PageUtil.PageDTO<SysDataPermissionsEntity> data);

    void edit(SysDataPermissionsEntity data);

    void del(SysDataPermissionsEntity data);

    List<Object> findByFieldValue(DataPermissionsTablesDTO data);

    List<DataPermissionsTablesVO> findByTables(SysDataPermissionsEntity data);

    List<DataPermissionsFieldsVO> findByFields(SysDataPermissionsEntity data);

    Map<String,String> findRoleIdBydDataPermissions(Integer roleId);

}
